﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FluentNHibernate.Mapping;

namespace Coleotrack.Data.Maps
{
    public class RoleMap : ClassMap<Role>
    {
        public RoleMap()
        {
            Id(x => x.Id);
            Map(x => x.Name).Not.Nullable();
            Map(x => x.IssueCreate).Not.Nullable();
            Map(x => x.IssueIndex).Not.Nullable();
            HasManyToMany(x => x.Users).Inverse();
        }
    }
}
